home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 15
/
CU Amiga Magazine's Super CD-ROM 15 (1997)(EMAP Images)(GB)[!][issue 1997-10].iso
/
TFX
/
install_tfx
< prev
next >
Wrap
Text File
|
1997-08-19
|
9KB
|
441 lines
; $VER: TfxInstall 1.2 (13.06.94);
; Script to install TFX Amiga
; Installer is Copyright 1991-1993 Commodore-Amiga, Inc.
;
; Sculpted, nay crafted, by Charlie & Steve
;
; (C)Digital Image Design 5-Oct-1994
; har har you've got to be joking..
;amount of disk space reqd for tfx
(set size_of_tfx 6000000)
(set #bad-kick
(cat "You must be using Kickstart 3.0 to play TFX"
))
(set #ask-disk1
(cat "\n\nPlease insert the \"TFX DISK 0\" disk in any floppy drive."
))
(set #ask-disk2
(cat "\n\nPlease insert the \"TFX DISK 1\" disk in any floppy drive."
))
(set #ask-disk3
(cat "\n\nPlease insert the \"TFX DISK 2\" disk in any floppy drive."
))
(set #ask-disk4
(cat "\n\nPlease insert the \"TFX DISK 3\" disk in any floppy drive."
))
(set #ask-disk5
(cat "\n\nPlease insert the \"TFX DISK 4\" disk in any floppy drive."
))
(set #ask-disk6
(cat "\n\nPlease insert the \"TFX DISK 5\" disk in any floppy drive."
))
(set #ask-disk7
(cat "\n\nPlease insert the \"TFX DISK 6\" disk in any floppy drive."
))
(set #select-type-help
(cat "\n"
"Select Standard if you machine has no maths\n"
"coprocessor. Select 68881/2 if your machine\n"
"as a 68881 or 68882 FPU\n"
"**This option currently does nothing**\n"
))
;
; change this to guess the math type if possible
;
(set ask-fpu (askchoice
(prompt "Select type of math required"
(choices "Standard" "68881/2")
(default 0)
(help #select-type-help)
)))
(procedure
select-destination-directory
(transcript "Selecting destination directory for the installation.")
(
(set dest-dir
(askdir
(prompt
" Select destination directory for " pkgname " "
"<drive>:Tfx is recommended.\n"
)
(help
"specify the drive and directory you would like "
pkgname " installing.\n"
)
(newpath)
(default dest-dir)
)
)
)
)
(set
pkgname "TFX Amiga"
)
; Requirements
(set
need-version 37
need-memory (* 1800 1024)
)
(if (< (/ (getversion) 65536) 39)
(
(abort #bad-kick)
))
(complete 0)
; set default destination
(set dest-dir "sys:tfx")
; ---------------
; clear disk params.
(set askForDisk1 FALSE)
(set askForDisk2 FALSE)
(set askForDisk3 FALSE)
(set askForDisk4 FALSE)
(set askForDisk5 FALSE)
(set askForDisk6 FALSE)
(set askForDisk7 FALSE)
; --------------------
; Display a little msg
(message
"\n"
"\n"
"-= TFX AMIGA =-\n"
"\n"
"Hard disk installation v0.0\n"
"\n"
"TFX is ready to be installed\n"
"on your Hard Disk\n"
"\n"
"\n"
"\n"
"\n"
"\n"
"(C)opyright Digital Image Design 1994\n"
)
; ask user for directory to install too
(select-destination-directory)
; 1% seems fair.
(complete 1)
; change to makedir dest-dir
(makedir dest-dir)
(complete 2)
(set disk-space(getdiskspace dest-dir))
(if (< disk-space size_of_tfx)
(abort
"Insufficient disk space in\n"
dest-dir "\n\n"
"TFX requires at least\n"
size_of_tfx " bytes of empty disk space\n"
)
)
;; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
;; Deal with boot-disk if required
;
;
;(set ask-boot (database "total-mem"))
;(if (< ask-boot 2048000)
; (set ask-boot 1)
; (set ask-boot 0)
;)
;
;;(set ask-boot 0)
;
;; force message to appear on all user levels
;
;(if (= ask-boot 1)
;(
; (set old-user (user 1))
;
; (message
; "\nAs you only have 2Mb of memory, you\n"
; "will require a boot-disk.\n\n"
; "Please insert a blank disk in drive df0:"
; )
;
; (user old-user)
;))
;
;
;(if (= ask-boot 1)
;(
; (working "\nFormatting boot disk\n")
; (run "sys:system/format <>nil: drive df0: name TFX_BOOT noicons")
; (run "c:install df0:")
; (run "c:makedir df0:s")
; (run "c:makedir df0:c")
;
; (copyfiles
; (source "c:")
; (dest "df0:c")
; (choices "assign" "cd")
; )
;
; (textfile
;; (help #mk-boot-help)
; (dest "df0:s/startup-sequence")
; (append "assign <>nil: did: " dest-dir "\n")
; (append "cd <>nil: " dest-dir "\n")
; (append "tfx <>nil:")
; )
;))
;---------------------------------------------------------------
; Create a script to call the config program
; so we can successfully override the current did: path settings
;---------------------------------------------------------------
; set the pathname for the config script
(set initname
(cat dest-dir
"/initcfg"
))
;(message
; "attempting to make\n"
; "script on\n"
; initname
;)
; write the script
(textfile
(dest initname)
(append "assign did: dismount\n")
(append "assign did: " dest-dir "\n")
(append "cd " dest-dir "\n")
(append "config")
)
; actual copying stuff
; Added for CUCD to copy from single directory
(if (= askForDisk1 FALSE)
(copyfiles
(source "")
(dest dest-dir)
(files)
(pattern "~(disklist.cfg)")
(infos)
)
)
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 1
(if (= askForDisk1 TRUE)
(
(askdisk
(prompt #ask-disk1)
(help @askdisk-help)
(dest "did")
)
; fpu related choices - commented out at present
; (if (<> ask-fpu 0)
; (
; (copyfiles
; (source "did:")
; (dest dest-dir)
; (files)
; (pattern "tfx")
; )
; )
; )
; (if (<> ask-fpu 1)
; (
; (copyfiles
; (prompt "Hello")
; (source "did:")
; (dest dest-dir)
; (files)
; (pattern "tfx_fpu)"
; )
; )
; )
(copyfiles
(source "did:")
(dest dest-dir)
(files)
(pattern "~(disklist.cfg)")
(infos)
)
(complete 20)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 2
(if (= askForDisk2 TRUE)
(
(askdisk (prompt #ask-disk2)
(help @askdisk-help)
(dest "didlib")
)
(copyfiles (source "didlib:") (dest dest-dir) (files) (pattern "#?"))
(complete 30)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 3
(if (= askForDisk3 TRUE)
(
(askdisk (prompt #ask-disk3)
(help @askdisk-help)
(dest "didsea")
)
(copyfiles (source "DIDSEA:")
(dest dest-dir)
(files)
(pattern "~(disklist.cfg)")
(infos)
)
(complete 40)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 4
(if (= askForDisk4 TRUE)
(
(askdisk (prompt #ask-disk4)
(help @askdisk-help)
(dest "DIDYUG")
)
(copyfiles (source "DIDYUG:") (dest dest-dir) (files) (pattern "#?"))
(complete 50)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 5
(if (= askForDisk5 TRUE)
(
(askdisk (prompt #ask-disk5)
(help @askdisk-help)
(dest "PAR1")
)
(copyfiles (source "PAR1:") (dest dest-dir) (files) (pattern "#?"))
(complete 60)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 6
(if (= askForDisk6 TRUE)
(
(askdisk (prompt #ask-disk6)
(help @askdisk-help)
(dest "PAR2")
)
(copyfiles (source "PAR2:") (dest dest-dir) (files) (pattern "#?"))
(complete 80)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Do disk 7
(if (= askForDisk7 TRUE)
(
(askdisk (prompt #ask-disk7)
(help @askdisk-help)
(dest "PAR3")
)
(copyfiles (source "PAR3:") (dest dest-dir) (files) (pattern "#?"))
(complete 90)
))
; >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
; Amend startup-sequence
(startup "AmigaTfx"
(prompt "Updating user-startup")
(help @startup-help)
(command "assign did: " dest-dir)
)
(complete 100)
(message
"\n"
"-= TFX AMIGA =-\n"
"\n"
"TFX is now installed on your Hard Disk\n"
"and is ready to play, if you are using\n"
"a 2MB machine then you must free up as\n"
"much memory as possible, by switching\n"
"off external drives and unused Hard\n"
"disk partitions as possible, also make\n"
"sure that you keep the number of buffers\n"
"allocated by HdToolBox to a minimum.\n"
"\n"
"\n"
"(C)opyright Digital Image Design 1994\n"
)
; Run the TFX Config program and exit
(execute initname)